﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace AnesSystem.Controls.CommonTables.CQ.CQFY
{
    /// <summary>
    /// ShouShuShouFei.xaml 的交互逻辑
    /// </summary>
    public partial class ShuHouSuiFangCtrl : CustomCommonTableCtrl
    {
        public ShuHouSuiFangCtrl()
        {
            InitializeComponent();
            IniteRadioBation();
            this.Loaded += thisCtrl_Loaded;
        }


        private void thisCtrl_Loaded(object sender, RoutedEventArgs e)
        {
            DataManager.Instance.IsNotNeedSaveData = false;
        }

        private void rq_GotFocus(object sender, RoutedEventArgs e)
        {
            CusDatePickerWin cusDatePicker = new CusDatePickerWin();
            cusDatePicker.SelectedDateTime = DateTime.Now;
            cusDatePicker.ShowDialog();
            if (cusDatePicker.Result)
            {
                rq.Value = cusDatePicker.SelectedDateTime.ToString(DateFormat.DATE_FORMAT_STR_YMD_CN);//xxxx年xx月xx日
            }
        }
        private void IniteRadioBation()
        {
            new RadioButtonHelper().ChangeRadioSatus(shsf1, shsfs1);
            new RadioButtonHelper().ChangeRadioSatus(shsf2, shsfs2);
            new RadioButtonHelper().ChangeRadioSatus(shsf3, shsfs3);
            new RadioButtonHelper().ChangeRadioSatus(shsf4, shsfs4);
            new RadioButtonHelper().ChangeRadioSatus(shsf5, shsfs5);
            new RadioButtonHelper().ChangeRadioSatus(shsf6, shsfs6);
            new RadioButtonHelper().ChangeRadioSatus(shsf7, shsfs7);
            new RadioButtonHelper().ChangeRadioSatus(shsf8, shsfs8);
            new RadioButtonHelper().ChangeRadioSatus(shsf9, shsfs9);
            new RadioButtonHelper().ChangeRadioSatus(shsf10, shsfs10);
            new RadioButtonHelper().ChangeRadioSatus(shsf11, shsfs11);
            new RadioButtonHelper().ChangeRadioSatus(shsf12, shsfs12);
            new RadioButtonHelper().ChangeRadioSatus(shsf13, shsfs13);
            new RadioButtonHelper().ChangeRadioSatus(shsf14, shsfs14);
            new RadioButtonHelper().ChangeRadioSatus(shsf15, shsfs15);
            new RadioButtonHelper().ChangeRadioSatus(shsf16, shsfs16);
            new RadioButtonHelper().ChangeRadioSatus(shsf17, shsfs17);
            new RadioButtonHelper().ChangeRadioSatus(shsf18, shsfs18,shsfss18);
            new RadioButtonHelper().ChangeRadioSatus(shsf19, shsfs19,shsfss19,shsfsss19);
           

        }
    }
}
